#!/usr/bin/env python
# -*- encoding: utf-8 -*-
'''
@File    :   BOOT_ClearDiagInfo_0x14_test.py
@Time    :   2025/04/07 13:31:28
@Author  :   YangLiang 
@Version :   1.0
@Contact :   yangl@genvict.com
@License :   (C)Copyright 2022-2025
@Desc    :   None
'''

# here put the import lib
from pytest_assume.plugin import assume
import Set_up 
import pytest
import time
import requests
from sympy import I
# from sympy import assuming
from commDriver.TS_CAN import *
import allure
import sys
from collections.abc import Iterable

from sqlalchemy import false
sys.dont_write_bytecode = True


class Test_BOOT_ClearDiagInfo_Phy(object):
     
      @allure.severity('minor')
      @allure.title('物理寻址-编程会话-14服务正响应')
      @allure.description('测试物理寻址编程会话下14服务正响应')
      def test_ClearDiagInfo_Programming_Phy(self,action,Driver):
         time.sleep(0.5)
         iStep = 1
         iStep,uds_resp, size = Driver['CAN'].checkReqResp(Driver, '14 FF FF FF', '54', 2, iStep, False)

      
class Test_BOOT_ClearDiagInfo_Func(object):
      @allure.severity('minor')
      @allure.title('功能寻址-编程会话-14服务正响应')
      @allure.description('测试功能寻址编程会话下14服务正响应')
      def test_ClearDiagInfo_Programming_Func(self,action,Driver):
         time.sleep(0.5)
         iStep = 1
         iStep,uds_resp, size = Driver['CAN'].checkReqResp(Driver, '14 FF FF FF', '54', 2, iStep, False, 'UDSFun', 'noClearFault')
     